<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/16
  Time: 14:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>使用EL表达式获取域对象中的简单类型的数据</title>
</head>
<body>
    <%
        application.setAttribute("msg","applicationValue");
        session.setAttribute("msg","sessionValue");
        request.setAttribute("msg","requestValue");
    %>

    获取的application域对象中的msg=${applicationScope.msg}<br>全局服务器
    获取的session中域对象的msg=${sessionScope.msg}<br>这个是一次会话
    获取request中的域对象的msg=${requestScope.msg}这个是一次请求

</body>
</html>
